﻿using FluentNHibernate.Mapping;
using NHibernateDown2Earth.Core.Entities;

namespace NHibernateDown2Earth.Core.Mapping
{
	public class ArticleMap: ClassMap<Article>
	{
		public ArticleMap()
		{
			Id(x => x.Id).GeneratedBy.Identity();

			Map(x => x.Title).Length(100).Not.Nullable();
			Map(x => x.PublishedOn);
		}
	}
}
